export default {
  // 全部已读
  READ_ALL (state) {
    state.msgLists.forEach(msg => {
      msg.read = true
    })
  },
  // 点击删除
  DEL_MSG (state, index) {
    state.msgLists.splice(index, 1)
  },
  // 点击已读
  READ_MSG (state, index) {
    state.msgLists[index].read = true
  }
}
